// <copyright file="Carousel.cs" company="YUIAsp.Net">
// Copyright (c) 2009 All Right Reserved
// </copyright>
// <author>raul popescu</author>
// <email>dev@yuiasp.net</email>
// <date>2009-01-30</date>
// <summary>YUIAsp.Net File</summary>

using System;
using System.Collections.Generic;
using System.Web.UI;
using System.Web.UI.WebControls;
using YUIAspNet.Common;
using System.ComponentModel;
using System.Globalization;

#region Embedded resources definitions
[assembly: WebResource("YUIAspNet.AutoComplete.AutoComplete.js", "text/javascript")]
[assembly: WebResource("YUIAspNet.EmbeddedSkins.AutoComplete.DefaultSkin.autocomplete-skin.css.css", "text/css", PerformSubstitution = true)]
#endregion

namespace YUIAspNet
{
    [ToolboxItem(true)]
    [ParseChildren(true)]
    public class Carousel : YUIScriptBaseControl, INamingContainer
    {

        public Carousel()
        {
         
        }

        void Calendar_Init(object sender, EventArgs e)
        {
           

            this.CssClass += " yui-skin-sam";
        }

        void Calendar_PreRender(object sender, EventArgs e)
        {
            if (this.EnableEmbeddedSkin)
            {
                this.RegisterEmbeddedStylesheet("YUIAspNet.EmbeddedSkins.AutoComplete.DefaultSkin.AutoComplete.css");
            
            }

            //if ((this.Page != null))
            //    this.Page.RegisterRequiresPostBack(this);
        }

        protected override void RegisterClientInitialization() 
        {
            //AddProperty("DatePersister", _datePersister.ClientID);
        }

        protected override void RegisterScriptReferences()
        {
            AddScriptReference(new ScriptReference("YUIAspNet.AutoComplete.AutoComplete.js", this.GetType().Assembly.FullName));
        }
    }
}
